<%@ page language="java"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Password Recovery System</title>
</head>
<body>
<h3>Password Recovery System</h3>

<s:if test='#request.status == "found"'>
	<table id="pass-recovery-table" border="0"
		style="height: 100px; font-size: 20px; margin-top: 100px;">
		<tr>
			<td>Your User Name and Password have been sent on your email id.<br />
			Please check your email.</td>
		</tr>
	</table>
</s:if>
<s:else>
	<s:form action="sendPass" theme="simple">
		<table border="0" align="center" style="margin-top: 100px;">
			<tr>
				<td>
				<table align="center">
					<tr>
						<td bgcolor="yellow"><s:actionerror /> <s:fielderror /></td>
					</tr>
				</table>
				<table id="pass-recovery-table" border="0">
					<tr>
						<td colspan="2">Enter your Email id and your account login
						details will be sent to you</td>
					</tr>
					<tr>
						<td colspan="2">&nbsp;</td>
					</tr>
					<tr>
						<td>Email id</td>
						<td><s:textfield name="email" maxlength="150" size="50" /> <s:hidden
							name="status" value="done" /></td>
					</tr>
					<tr>
						<td>&nbsp;</td>
						<td><s:submit value="Recover my password"
							cssClass="submit-button" /></td>
					</tr>
					<tr>
						<td colspan="2"></td>
					</tr>
				</table>
				</td>
			</tr>
		</table>
	</s:form>

</s:else>

</body>
</html>